
#include "matrix.h"
#include <iostream>

void testMatrix(void)
{
    glm::vec4 vec(1.0f, 0.0f, 0.0f, 1.0f);
    glm::mat4 trans = glm::mat4(1.0f);
    for(int i = 0;i < 4; i++)
    {
        for(int j = 0; j < 4; j++)
        {
            std::cout << trans[i][j] <<" ";
        }
        std::cout << std::endl;
    }
    std::cout << std::endl;
    trans = glm::translate(trans, glm::vec3(1.0f, 1.0f, 0.0f));
    for(int i = 0;i < 4; i++)
    {
        for(int j = 0; j < 4; j++)
        {
            std::cout << trans[i][j] <<" ";
        }
        std::cout << std::endl;
    }
    std::cout << std::endl;
    vec = trans * vec;
    std::cout << vec.x << vec.y << vec.z << std::endl;
}




